import github from "@/request";
export const getRepositories =async function (q){
    return github.get('/search/repositories',{
        params:{
            q
        }
    })
};

// 根据用户关键字搜索
export const getSearchUsers = function(q){
    return github.get("/search/users",{
        params:{
            q
        }
    })
};